<div class="layui-form-item" id="{{ $field }}_item"
     {{ isset($parents) && is_array($parents) ? "item-dynamic" : "" }}
     data-field="{{ $field }}"
     data-level="{{ isset($parents) && is_array($parents) ? count($parents) + 1 : 1 }}">
    <label class="layui-form-label">{{ $title }}</label>
    <div class="layui-input-inline"
         style="{{ isset($width) ? "width:{$width}" : ""  }}">
        <input type="text" name="{{ $field }}" id="{{ $field }}"
               class="layui-input layui-file-input"
               style="{{ isset($width) ? "width:{$width}" : "width:191px;"  }}">
    </div>
    <div class="layui-upload">
        <button type="button" class="layui-btn up-file"
                lay-data="{url: '/admin/upFile', exts: '{{ $ext }}', accept: 'file'}"
                data-ext="{{ $ext ?? "" }}"
                data-field="{{ $field }}">上传文件
        </button>
    </div>
</div>
